package live.zs.securitystarter.entity;

import org.hibernate.annotations.DynamicInsert;

import javax.persistence.*;

import java.time.LocalDateTime;

/**
 * @author Madison
 * @date 2021-07-16 16:44:01
 */
@Entity
@DynamicInsert
@Table(name = "my_users")
public class MyUsersEntity {
    /**
     * 主键ID
     */
    @Id
    @Column(name = "user_id")
    private Integer userId;
    /**
     * 用户名
     */
    @Column(name = "username")
    private String username;
    @Column(name = "password")
    private String password;
    /**
     * 随机盐
     */
    @Column(name = "salt")
    private String salt;
    /**
     * 简介
     */
    @Column(name = "phone")
    private String phone;
    /**
     * 头像
     */
    @Column(name = "avatar")
    private String avatar;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    @Column(name = "update_time")
    private LocalDateTime updateTime;
    /**
     * 0-正常，9-锁定
     */
    @Column(name = "lock_flag")
    private String lockFlag;
    /**
     * 0-正常，1-删除
     */
    @Column(name = "del_flag")
    private String delFlag;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }


    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }


    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }


    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }


    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }


    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }


    public String getLockFlag() {
        return lockFlag;
    }

    public void setLockFlag(String lockFlag) {
        this.lockFlag = lockFlag;
    }


    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

}
